package Chapter08.poly_;

/**
 * @author 杨森
 * @date 2022年09月28日 20:36
 */
public class Manager extends Employee{
    public double bonus;

    public Manager(double bonus ) {
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }


    public Manager(String name, Double sal, double bonus ) {
        super(name, sal);
        this.bonus = bonus;
    }

    public Manager(String name, Double sal) {
        super(name, sal);
    }

    public void manager(){
        System.out.println("经理 " +getName()+" is managing");
    }


    @Override
    public double getAnnualge() {
        return super.getAnnualge()+bonus;
    }

}
